using System.Data;
using Microsoft.Data.SqlClient;

namespace Admin2025.Infrastructure.Data;

// Admin2025DbContext 类用于创建数据库连接
public class Admin2025DbContext
{
  private readonly string _connectionString;

  public Admin2025DbContext(string connectionString)
  {
    _connectionString = connectionString;
  }

  // 用于创建 IDbConnection 实例（Dapper 使用）
  public IDbConnection CreateConnection()
  {
    return new SqlConnection(_connectionString);
  }

}